<h1> Items: </h1>
		
     <?php

	
		$model=$this->loadModel($eid);
		?>
		<p style="margin-bottom:-10px; font-weight:bold; font-size:15px; color:red">+
		<?php
		echo CHtml::link('Add Item', array('items/create&entry_id='.$model->id));
		?>
		</p>
		<?php
	 $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'items-grid',
	'dataProvider'=> new CArrayDataProvider($model->items),

	//'filter'=>Items::model(),
	'columns'=>array(
	array
(
    'class'=>'CButtonColumn',
    'template'=>'{view}{update}',
    'buttons'=>array
    (
        'view' => array
        (
    
            'url'=>'Yii::app()->createUrl("items/view", array("id"=>$data->id))',
        ),
		  'update' => array
        (
    
            'url'=>'Yii::app()->createUrl("items/update", array("id"=>$data->id))',
        ),
		 
       
    ),
),
		//'id',
		//'container_id',
		
		
		//'value'=>'$data->container->code'),
		'description',
			'description',
		'quantity',
		'cost',
		//'tariff_heading',
		//'tariff_rate',
		'gross_weight',
		'stock_code',
		'packaging',
		'dimension',
		

	),
)); ?>



